#ifndef __LIST_H__
#define __LIST_H__

struct thread_elt {
  ucontext_t context;
  struct thread_elt *next;
  struct thread_elt *waiting_begin;
  void ** retval;
  int valgrind_stackid;
  int dead;
};


struct thread_elt *dead_begin; //liste des processus terminé unjoined
struct thread_elt *ready_begin; //file
struct thread_elt *cursor_ready; //unique element

void add_list(struct thread_elt *,struct thread_elt **);
void remove_list(struct thread_elt *,struct thread_elt **);

#endif
